/**
 * 公共 - 边栏
 */
let CommonSidebarComponent = class CommonSidebarComponent{
    /**
     * 页面ID
     */
    id = "sidebar"
    /**
     * 视图名称
     */
    name = "边栏菜单"
    /**
     * 视图标题
     */
    title = "页头组件"

    /**
     * 页面数据
     */
    data = [
        {
            path:"/conf/app",
            title:"系统设置"
        },
        {
            path:"/conf/AppAndroid",
            title:"安卓设置"
        }
    ]

    innerHTML

    /**
     * 构造函数
     */
    constructor(RouteTabe){

        var menuString = ''
        for(var n in RouteTabe.child){
            menuString += '<li><a href="' + RouteTabe.child[n].path + '" type="route">' + RouteTabe.child[n].title + '</a></li>'
        }

        this.innerHTML = `
        <div id="sidebar" class="w-px-200 h-rh-100 f-l t-a-c b-c-666">
            <div id="menu">
                <ul>
                    `+ menuString +`
                </ul>
            </div>
        </div>
        `



    }

}

export default CommonSidebarComponent

